'''
Created on Feb 13, 2014

@author: yfrank
'''

class Message(object):
    '''
    classdocs
    '''

    def __init__(self,msg):
        '''
        Constructor
        '''
        self.buff = msg


class InputMessage(Message):
    '''
    classdocs
    '''
    delim = '|'


    def __init__(self, workspace, robot, src, trg):
        '''
        Constructor
        '''
        super(InputMessage,self).__init__('')
        delim = InputMessage.delim
        self.buff = workspace+delim+robot+delim+src+delim+trg

    def __str__(self):
        return self.buff



class OutputMessage(Message):
    '''
    classdocs
    '''

    def __init__(self, paths):
        '''
        Constructor
        '''
        super(OutputMessage,self).__init__('')
        for path in paths:
            self.buff += path



    def __str__(self):
        return self.buff
